apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    kubesphere.io/creator: admin
    kubesphere.io/description: kubesphere documents
  labels:
    app: kubesphere
    component: ks-docs
    tier: backend
  name: ks-docs
  namespace: kubesphere-system
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: kubesphere
      component: ks-docs
      tier: backend
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: kubesphere
        component: ks-docs
        tier: backend
    spec:
      containers:
        - env:
            - name: CACHE_IGNORE
              value: js|html
            - name: CACHE_PUBLIC_EXPIRATION
              value: 3d
          image: {{ ks_docs_repo }}:{{ ks_docs_tag }}
          imagePullPolicy: {{ ks_image_pull_policy }}
          name: ks-docs
          ports:
            - containerPort: 80
              protocol: TCP
          resources:
            limits:
              cpu: 100m
              memory: 100Mi
            requests:
              cpu: 10m
              memory: 10Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: kubesphere
      serviceAccountName: kubesphere
      terminationGracePeriodSeconds: 30
